package com.example.zxslzw2014_8_11;


import com.example.zxslzw2014_8_11.controller.UserController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
public class Zxslzw2014811Application {

    public static void main(String[] args) {
//        //获取Spring上下文对象
//        ApplicationContext context = SpringApplication.run(Zxslzw2014811Application.class, args);
//        //从Spring上下文中获取对象
//        UserController1 userController1 = (UserController1) context.getBean("userController1");
//        //使用对象
//        userController1.doController();
        SpringApplication.run(Zxslzw2014811Application.class,args);


    }
}


